Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extended address field #268

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

zatteo
Copy link

@zatteo zatteo commented Sep 26, 2024

  • Lieu dit
  • Étage
  • Batiment
  • Escalier
  • Appartement
  • Code d'entrée

In autofill and contact view

Tested on demande-logement-social.gouv.fr

The fill script is generated by taking into accounts :
- the cipher itself (login, card, contact)
- the fields of the cipher

For some reason, we added every contact field in the fields of the
cipher. So the autofill function sometimes try to autofill the same
HTML field two times : one because there is a match with the contact
and one because there is a match with the same value in fields.

We fix this by skipping fields during contact autofill.
* @returns {AutofillScript}
* @private
*/
private async generateContactFillScript(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/generateContactFillScript/generateContactAddressFillScript ?

- Lieu dit
- Étage
- Batiment
- Escalier
- Appartement
- Code d'entrée

Dictionary is very simple for the moment but it is enough for our
test site.
@zatteo zatteo force-pushed the feat/add-extended-address-field branch from 091bafc to 91fc438 Compare September 26, 2024 09:39
@zatteo zatteo changed the base branch from feat/no-double-autofill to feat/stream2-part3 September 26, 2024 13:06
@zatteo zatteo merged commit f8f63bf into feat/stream2-part3 Sep 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants